package com.zhou.kotlin_car_data_list.utils

import com.zhou.kotlin_car_data_list.bean.Brand
import com.zhou.kotlin_car_data_list.bean.BrandListBean
import com.zhou.kotlin_car_data_list.bean.LogoBean
import com.zhou.kotlin_car_data_list.bean.ModelListBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * </br>
 * Date: 2025/8/24
 * Created by:zhourui
 */
interface CarApi {

    companion object {
        val key = "086812c37b913391f2f523a7b4ad8824"
        val baseUrl = "http://apis.juhe.cn/cxdq/"
    }

    @GET("brand")
    open fun getCarLogo(
        @Query("key") key: String,
        @Query("first_letter") firstLetter: String
    ): Call<LogoBean>?

    @GET("series")
    open fun getBrandList(
        @Query("key") key: String,
        @Query("brandid") brandid: String
    ): Call<BrandListBean>?

    @GET("models")
    open fun getModelList(
        @Query("key") key: String,
        @Query("series_id") series_id: String
    ): Call<ModelListBean>?
}